export const uploadFile = async (url) => {
	return uni.$uv.http.upload('https://fedex.trio.pub/api/common/upload', {
		filePath: url,
		name: 'file'
	}).then(res => {
		console.log('上传',res);
		return res
	}).catch(err => {
		uni.$uv.toast("图片上传错误,请重试！", 2000);
		return false
	})
}
export const PerformanceTable = (params) => uni.$uv.http.get('/api/common/PerformanceTable', {params})
export const getEchartsData = (params) => uni.$uv.http.get('/api/common/getEchartsData', {params})
export const workAreaMap = (params) => uni.$uv.http.get('/api/common/workAreaMap', {params})

